package com.isdepci.project.eleLoad.service.impl;

import com.isdepci.project.eleLoad.domain.AMachineryQuota;
import com.isdepci.project.eleLoad.mapper.AMachineryQuotaMapper;
import com.isdepci.project.eleLoad.service.IAMachineryQuotaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 机械台班定额Service业务层处理
 *
 * @author isdepci
 * @date 2025-02-27
 */
@Service
public class AMachineryQuotaServiceImpl implements IAMachineryQuotaService
{
    @Autowired
    private AMachineryQuotaMapper aMachineryQuotaMapper;

    /**
     * 查询机械台班定额
     */
    @Override
    public AMachineryQuota selectAMachineryQuotaById(Long id)
    {
        return aMachineryQuotaMapper.selectAMachineryQuotaById(id);
    }

    /**
     * 查询机械台班定额列表
     */
    @Override
    public List<AMachineryQuota> selectAMachineryQuotaList(AMachineryQuota aMachineryQuota)
    {
        return aMachineryQuotaMapper.selectAMachineryQuotaList(aMachineryQuota);
    }

    /**
     * 新增机械台班定额
     */
    @Override
    public int insertAMachineryQuota(AMachineryQuota aMachineryQuota)
    {
        return aMachineryQuotaMapper.insertAMachineryQuota(aMachineryQuota);
    }

    /**
     * 修改机械台班定额
     */
    @Override
    public int updateAMachineryQuota(AMachineryQuota aMachineryQuota)
    {
        return aMachineryQuotaMapper.updateAMachineryQuota(aMachineryQuota);
    }

    /**
     * 批量删除机械台班定额
     */
    @Override
    public int deleteAMachineryQuotaByIds(Long[] ids)
    {
        return aMachineryQuotaMapper.deleteAMachineryQuotaByIds(ids);
    }

    /**
     * 删除机械台班定额信息
     */
    @Override
    public int deleteAMachineryQuotaById(Long id)
    {
        return aMachineryQuotaMapper.deleteAMachineryQuotaById(id);
    }
}
